home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
archiver
/
arc.zoo
/
minix
/
utimes.c
< prev
Wrap
C/C++ Source or Header
|
1988-11-17
|
342b
|
24 lines
/* bsd utimes emulation for Sys V */
/* by Jon Zeeff */
#include <sys/types.h>
struct timeval {
long tv_sec;
long tv_usec;
};
utimes(path,tvp)
char *path;
struct timeval tvp[2];
{
time_t utimbuf[2];
utimbuf[0] = (time_t) tvp[0].tv_sec;
utimbuf[1] = (time_t) tvp[1].tv_sec;
return utime(path,utimbuf);
}